<?php
require_once 'header.php';
?>
<div>
    <h1 id="Contentitle">Inscrição</h1><br />
</div>
<div>
    <p>Preenche correctamente este formulário com os dados da tua equipa. 
        Se precisares, pede ajuda ao(à) teu(tua) professor(a).</p>
    <p>Todos os campos são obrigatórios</p>
</div>
<form action="equipa_inserir.php?" method="post">
    <input type="hidden" name="id" value="-1" />
    <div>
        <div class="linha">
            <label for="teamname" class="formLabelEsq">Username</label>
            <input class="formInput" id="teamname" name="login" type="text"/>
            <label for="password" class="formLabelDir">Password</label>
            <input class="formInput" id="regpassword" name="password" type="password"/>
        </div>
        <div class="linha">
            <label class="formLabelEsq" for="nomeEquipa" >Nome de Equipa</label>
            <input class="formInputLine" name="nome" type="text"/>
        </div>
        <div class="linha">
            <label class="formLabelEsq" for="email" >E-mail</label>
            <input class="formInputLine" name="email" type="text"/>
        </div>
         <div class="linha">
            <label for="elementos" class="formLabelTextarea" >Elementos da equipa</label>
            <textarea id="elementos" class="formInputLine" name="elementos" rows="3" cols="50"></textarea>
        </div>
        <div class="linha">
            <label for="professor" class="formLabelEsq">Professor</label>
            <input class="formInputLine" id="professor" name="professor" type="text"/>
        </div>
        <div class="linha">
            <label for="schoolname" class="formLabelEsq">Nome da Escola</label>
            <input class="formInput" id="schoolname" name="schoolname" type="text"/>
            <label for="schoolphone" class="formLabelDir">Telefone</label>
            <input class="formInput" id="schoolphone" name="schoolphone" type="text"/>
        </div>
        <div class="linha">
            <label for="schooladdress" class="formLabelTextarea" id="regSchoolAddr">Morada completa</label>
            <textarea id="schooladdress" class="formInputLine" name="schooladdress" rows="3" cols="50"></textarea>
        </div>
        <div class="linha">
            <label for="schoolcode" class="formLabelEsq">Código Postal</label>
            <input class="formInput" id="schoolcode" name="schoolcode" type="text"/>
            <label class="formLabelDir">Localidade</label>
            <input class="formInput" id="schoolcity" name="schoolcity" type="text"/>
            <?php
            if (isset($_GET["valid"])) {
                echo "<div class=\"linha erro\">";
                echo "<p>*Alguns campos não foram preenchidos ou estão incorretos</p>";
                echo "</div>";
            }
            ?>
        </div>
        <div class="linha">
            <div id="linhaBotoes">
                <input id="submeter" type="submit" value="Registar"/>                 
                <input id="cancelar" type="reset" value="Cancelar"/>
            </div>
        </div>
    </div>
</form>

<?php
require_once 'footer.php';
?>
